package com.woniuxy.service.basics.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.dao.CarpictureMapper;
import com.woniuxy.pojo.Carpicture;
import com.woniuxy.service.basics.CarpictureService;
@Service
public class CarpictureServiceImpl implements CarpictureService{

	@Autowired
	private CarpictureMapper carpictureMapper;
	@Override
	public List<Carpicture> selectByCarId(Integer carId) {
		// TODO Auto-generated method stub
		return carpictureMapper.selectByCarId(carId);
	}
	@Override
	public void addPicture(Carpicture carpicture) {
		// TODO Auto-generated method stub
		carpictureMapper.insertSelective(carpicture);
	}
	@Override
	public void deletePicture(Integer cpId) {
		carpictureMapper.deleteByPrimaryKey(cpId);
		
	}

}
